package com.steven.forum.service

import com.alibaba.fastjson.JSONObject
import org.springframework.web.multipart.MultipartFile
import javax.servlet.http.HttpServletResponse

interface ForumService {
    fun queryHotForumList(uid: Long?, page: Long = 1L): JSONObject
    fun queryNewForumList(uid: Long?, page: Long = 1L): JSONObject
    fun queryForumByFid(uid: Long?, fid: Long?): JSONObject
    fun addForum(uid: Long?, title: String?, content: String?, images: Array<MultipartFile>?, response: HttpServletResponse): JSONObject
    fun addUserHistory(uid: Long?, forumId: Long?): JSONObject
    fun queryDiscuss(forumId: Long?): JSONObject
    fun addDiscuss(uid: Long?, fid: Long?, content: String?): JSONObject
    fun addComplain(uid: Long, targetUid: Long, content: String, images: Array<MultipartFile>, response: HttpServletResponse): JSONObject
    fun queryComplain(uid: Long, lastCreateTime: Long):JSONObject
    fun updateComplain(uid: Long, id: Long):JSONObject
}